import React, { Component } from 'react';
import {
  HashRouter,
  Router,
  Route
} from 'react-router-dom';

import history from './components/History';

import Home from './components/Home';
import Menu from './components/Menu';
import Accounting from './containers/Accounting';
import Order from './containers/Order';


class App extends Component {
  render() {
    return (
      <Router history={history}>
          <Home>
              <Route exact path="/" component={Menu} />
              <Route path="/accounting" component={Accounting} />
              <Route path="/order" component={Order} />
          </Home>
      </Router>
    );
  }
}


export default App;
